package com.geping.etl.common.exceptoin;

import lombok.Data;

/**
 * @Author jianfeng.zhu
 * @Description 业务异常定义类
 * @Date 15:05 2021/9/7
 **/
@Data
public class BusinessException extends RuntimeException{

    private String errCode;
    private String message;

    public BusinessException(SystemCode systemCode){
        this.errCode = systemCode.getErrCode();
        this.message = systemCode.getErrMsg();
    }
}
